<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>SB Admin 2 - Bootstrap Admin Theme</title>

    <%= csrf_meta_tags %>
    <%= stylesheet_link_tag    'cpanel', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'cpanel', 'data-turbolinks-track': 'reload' %>

</head>

<body>

    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h2 class="panel-title">登录</h2>
                    </div>
                    <div class="panel-body">
                        <% if flash[:alert] %>
                            <div class="alert alert-danger alert-dismissable">
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                <%= flash[:alert] %>
                            </div>
                        <% end %>
                        <%= form_for(Admin.new, url: admin_session_path) do |f| %>
                            <fieldset>
                                <div class="form-group">
                                    <input class="form-control" placeholder="邮箱" name="admin[email]" type="email" autofocus>
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="密码" name="admin[password]" type="password" value="">
                                </div>
                                <div class="checkbox">
                                    <label>
                                        <input name="admin[remember]" type="checkbox" value="Remember Me">七日内免登陆
                                    </label>
                                </div>
                                <!-- Change this to a button or input when using this as a form -->
                                <input type="submit" class="btn btn-lg btn-success btn-block" value="登录" style="cursor: pointer">
                            </fieldset>
                        <% end %>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
</body>

</html>
